package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class HpPersonCntsRowMapper implements RowMapper<HpPersonCnts> {
    @Override
    public HpPersonCnts mapRow(ResultSet rs, int rowNum) throws SQLException {
        HpPersonCnts hp=new HpPersonCnts();
        hp.setAdress(rs.getString("adress"));
        hp.setId(rs.getInt("id"));
        hp.setNumber_cnts(rs.getString("number_cnts"));
        hp.setStatus(rs.getString("status"));
        hp.setTimes(rs.getString("times"));
        return hp;
    }
}
